package cn.hdustea.shopNavigation.ui.contract

import cn.hdustea.shopNavigation.entity.Life
import com.hdustea.base.base.IBaseModel
import com.hdustea.base.base.IBasePresenter
import com.hdustea.base.base.IBaseView
import com.hdustea.base.net.BaseCallback

/**
 * <pre>
 *     author : HuQiang
 *     time   : 2020/09/21
 *     desc   :
 *     version: 1.0
 * </pre>
 */
interface LifeContract {
    interface Presenter : IBasePresenter {

        fun getLifeList(page: Int, isRefresh: Boolean)
    }

    interface View : IBaseView {

        fun setLifeList(lifeList: MutableList<Life>, isRefresh: Boolean)

    }

    interface Model : IBaseModel {

        fun getLifeList(page: Int, callback: BaseCallback<MutableList<Life>>)

    }
}
